package com.sinitek.model.entity;

import lombok.Data;
import lombok.ToString;
import org.springframework.data.elasticsearch.annotations.Document;

/**
 * @program: elastic
 * @description:
 * @author: Mr.chen
 * @create: 2019-04-28 13:48
 */
@Data
@ToString
@Document(indexName = "kibana_sample_data_flights", type = "_doc")
public class SampleData {

    private String FlightNum;
    private String DestCountry;
    private String OriginWeather;
    private String OriginCityName;
    private Double AvgTicketPrice;
    private Double DistanceMiles;
    private Boolean FlightDelay;
    private String DestWeather;
    private String Dest;
    private String FlightDelayType;
    private String OriginCountry;
    private Integer dayOfWeek;
    private Double DistanceKilometers;
    private String timestamp;
    private DestLocation destLocation;

    private String DestAirportID;
    private String Carrier;
    private Boolean Cancelled;
    private Double FlightTimeMin;
    private String Origin;
    private OriginLocation originLocation;

    private String DestRegion;
    private String OriginAirportID;
    private String OriginRegion;
    private String DestCityName;
    private Double FlightTimeHour;
    private Integer FlightDelayMin;

    @Data
    class DestLocation {
        private String lat;
        private String lon;
    }

    @Data
    class OriginLocation {
        private String lat;
        private String lon;
    }
}
